

import type { Iuserrecharge } from './entity';
import type { IPageParams } from '@/types/table'
import request from '@/api/request'

export function getPageList(params: IPageParams) {
  return request({
    url: '/admin/store/retail/list',
    method: 'get',
    params,
    loading: true
  })
}

export function userrechargeDel(data) {
  return request({
    url: `admin/user/topUpLog/delete`,
    method: 'post',
    data
  })
}
export function userrechargeinfo(id) {
  return request({
    url: `admin/user/topUpLog/info/${id}`,
    method: 'get'
  })
}
export function userrechargeSelect(id) {
  return request({
    url: `admin/user/topUpLog/select`,
    method: 'get'
  })
}

export function userrechargeAddup(data) {
  return request({
    url: `admin/user/topUpLog/${!data.id ? 'save' : 'update'}`,
    method: 'post',
    data
  })
}
export function configApi() {
  return request({
    url: '/admin/store/retail/spread/manage/get',
    method: 'get'
  })
}
export function configUpdateApi(data) {
  return request({
    url: '/admin/store/retail/spread/manage/set',
    method: 'post',
    data
  })
}